﻿using System;
using System.Data;
using System.Collections;

/// <summary>
/// Summary description for ProviderCarMakeModel
/// </summary>
/// 
namespace CE.Provider
{
    public class CarMakeModel
    {
        public CarMakeModel()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        private Int64 _providercarmakemodelid;
        private Int32 _carmakeid;
        private Int32 _carmodelid;
        private Int64 _providercompanyid;
        private string _description;
        private string _carcode;
        private string _body;
        private Int32 _numberofdoors;
        private Int32 _cc;
        private bool _turboengine;
        private bool _parallelimport;
        private float _rate;
        private Int32 _agent;
        private Int32 _uw;
        private Int64 _refceuserid;
        private bool _isrefer;
        private bool _status;
        private Int32 _cc2;
        private string _body2;

        private float _finfo1; //new rate
        private DateTime _dinfo1;  //effectivity date


        public Int64 ProviderCarMakeModelId
        {
            get { return _providercarmakemodelid; }
            set { _providercarmakemodelid = value; }
        }

        public Int32 CarMakeId
        {
            get { return _carmakeid; }
            set { _carmakeid = value; }
        }

        public Int32 CarModelId
        {
            get { return _carmodelid; }
            set { _carmodelid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public string CarCode
        {
            get { return _carcode; }
            set { _carcode = value; }
        }

        public string Body
        {
            get { return _body; }
            set { _body = value; }
        }

        public Int32 NumberOfDoors
        {
            get { return _numberofdoors; }
            set { _numberofdoors = value; }
        }

        public Int32 CC
        {
            get { return _cc; }
            set { _cc = value; }
        }

        public bool TurboEngine
        {
            get { return _turboengine; }
            set { _turboengine = value; }
        }

        public bool ParallelImport
        {
            get { return _parallelimport; }
            set { _parallelimport = value; }
        }

        public float Rate
        {
            get { return _rate; }
            set { _rate = value; }
        }

        public Int32 Agent
        {
            get { return _agent; }
            set { _agent = value; }
        }

        public Int32 UW
        {
            get { return _uw; }
            set { _uw = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public bool IsRefer
        {
            get { return _isrefer; }
            set { _isrefer = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int32 CC2
        {
            get { return _cc2; }
            set { _cc2 = value; }
        }

        public string Body2
        {
            get { return _body2; }
            set { _body2 = value; }
        }

        public float FInfo1
        {
            get { return _finfo1; }
            set { _finfo1 = value; }
        }

        public DateTime DInfo1
        {
            get { return _dinfo1; }
            set { _dinfo1 = value; }
        }

        private void ClearFields()
        {
            _providercarmakemodelid = 0;
            _carmakeid = 0;
            _carmodelid = 0;
            _providercompanyid = 0;
            _description = "";
            _carcode = "";
            _body = "";
            _numberofdoors = 0;
            _cc = 0;
            _turboengine = true;
            _parallelimport = true;
            _rate = 0;
            _agent = 0;
            _uw = 0;
            _refceuserid = 0;
            _isrefer = true;
            _status = true;
            _cc2 = 0;
            _body2 = "";

            _finfo1 = 0.0f;
            _dinfo1 = new DateTime();
        }


    }
}
